<!-- src/components/base/Button.vue -->
<template>
  <el-button :type="type" @click="handleClick">{{ label }}</el-button>
</template>
<script setup>
import { defineProps, defineEmits } from "vue";
const props = defineProps({
  type: {
    type: String,
    default: "primary",
  },
  label: {
    type: String,
    required: true,
  },
});
const emits = defineEmits(["click"]);
const handleClick = () => {
  emits("click");
};
</script>
